//
//  CFRMRecipeListCell.swift
//  CrazyFatReducingMeal
//
//  Created by iOS-Czz on 2023/11/7.
//

import UIKit

class CFRMRecipeListCell: UICollectionViewCell {

    @IBOutlet var dinnerLabel: UILabel!
    @IBOutlet var lunchLabel: UILabel!
    @IBOutlet var breakfastLabel: UILabel!
    @IBOutlet var nameLabel: UILabel!
    var clickEditBlock: (() -> Void)?

    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }
    var model: CFRMRecipeModel? {
        didSet {
            self.nameLabel.text = self.model?.name
            self.breakfastLabel.text = self.model?.breakfast
            self.lunchLabel.text = self.model?.lunch
            self.dinnerLabel.text = self.model?.dinner
        }
    }
    @IBAction func clickEditAction(_ sender: Any) {
        clickEditBlock?()
    }
}
